<template>
  <div class="wallpaperset">
    <div class="wallpaper">
      <p>当前壁纸</p>
      <div class="imglists">
        <img class="imgcards" :src="store.currentimage" alt="cover" />
      </div>
    </div>
    <div class="wallpaper">
      <p>本地壁纸</p>
      <div class="imglists">
        <img
          :src="`/images/bg-${item}.webp`"
          alt=""
          v-for="(item, index) of 4"
          class="imgcards"
        />
      </div>
    </div>
  </div>
</template>

<script setup>
import { onMounted, ref, watch, h } from "vue";
import { homepage } from "@/store";
const store = homepage();
</script>

<style lang="scss" scoped>
.wallpaperset {
  .wallpaper {
    p {
      font-size: 16px;
      font-family: YS;
    }
    .imglists {
      height: 120px;
      padding: 10px;
      .imgcards {
        border-radius: 10px;
        box-shadow: 0 0 10px 3px rgb(0 0 0 /20%);
        height: 100px;
        width: 100px;
        margin-right: 15px;
        cursor: pointer;
        &:hover {
          box-shadow: 0 0 10px 3px rgb(0 0 0 /12%);
        }
      }
    }
  }
}
</style>
